package com.neusoft.neuiotms.dcom.repository.malfunction;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.malfunction.MalfunctionLeaderApproval;

public interface MalfunctionLeaderApprovalRepository extends JpaRepository<MalfunctionLeaderApproval, Long> {

    MalfunctionLeaderApproval findByWorkNumAndTaskId(String workNum, String taskId);

    MalfunctionLeaderApproval findTopByWorkNumOrderByIdDesc(String workNum);
}
